.class Les/ff$a;
.super Ljava/lang/Object;
.source "ImageAnalyzer.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/ff;->d()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/ArrayList;

.field final synthetic b:J

.field final synthetic c:Les/ff;


# direct methods
.method constructor <init>(Les/ff;Ljava/util/ArrayList;J)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ff$a;->c:Les/ff;

    iput-object p2, p0, Les/ff$a;->a:Ljava/util/ArrayList;

    iput-wide p3, p0, Les/ff$a;->b:J

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .line 1
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->a(Les/ff;)V

    .line 2
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->b(Les/ff;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    new-array v3, v0, [Les/cg;

    .line 3
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->b(Les/ff;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v3}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    .line 4
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->c(Les/ff;)I

    move-result v0

    new-array v4, v0, [Les/bg;

    .line 5
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->d(Les/ff;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v4}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    .line 6
    new-instance v0, Les/we;

    iget-object v1, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v1}, Les/ff;->e(Les/ff;)J

    move-result-wide v5

    const/4 v2, 0x0

    move-object v1, v0

    invoke-direct/range {v1 .. v6}, Les/we;-><init>(Ljava/lang/String;[Les/cg;[Les/bg;J)V

    .line 7
    iget-object v1, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v1}, Les/ff;->f(Les/ff;)[Les/nf;

    move-result-object v1

    array-length v2, v1

    const/4 v3, 0x0

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v2, :cond_4

    aget-object v5, v1, v4

    if-eqz v5, :cond_3

    .line 8
    iget-object v6, p0, Les/ff$a;->c:Les/ff;

    monitor-enter v6

    .line 9
    :try_start_0
    iget-object v7, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v7}, Les/ff;->g(Les/ff;)Ljava/util/concurrent/ThreadPoolExecutor;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/concurrent/ThreadPoolExecutor;->isShutdown()Z

    move-result v7

    if-nez v7, :cond_1

    iget-object v7, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v7}, Les/ff;->g(Les/ff;)Ljava/util/concurrent/ThreadPoolExecutor;

    move-result-object v7

    invoke-virtual {v7}, Ljava/util/concurrent/ThreadPoolExecutor;->isTerminated()Z

    move-result v7

    if-eqz v7, :cond_0

    goto :goto_1

    :cond_0
    const/4 v7, 0x0

    goto :goto_2

    :cond_1
    :goto_1
    const/4 v7, 0x1

    :goto_2
    if-nez v7, :cond_2

    .line 10
    new-instance v7, Les/ff$c;

    iget-object v8, p0, Les/ff$a;->c:Les/ff;

    invoke-direct {v7, v8, v5, v0}, Les/ff$c;-><init>(Les/ff;Les/nf;Les/we;)V

    .line 11
    iget-object v5, p0, Les/ff$a;->a:Ljava/util/ArrayList;

    iget-object v8, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v8}, Les/ff;->g(Les/ff;)Ljava/util/concurrent/ThreadPoolExecutor;

    move-result-object v8

    invoke-virtual {v8, v7}, Ljava/util/concurrent/ThreadPoolExecutor;->submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;

    move-result-object v7

    invoke-virtual {v5, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 12
    :cond_2
    monitor-exit v6

    goto :goto_3

    :catchall_0
    move-exception v0

    monitor-exit v6
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_3
    :goto_3
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 13
    :cond_4
    iget-object v0, p0, Les/ff$a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_4
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_6

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/concurrent/Future;

    .line 14
    iget-object v2, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v2}, Les/ff;->h(Les/ff;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 15
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->i(Les/ff;)V

    return-void

    .line 16
    :cond_5
    :try_start_1
    invoke-interface {v1}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_4

    :catch_0
    move-exception v1

    .line 17
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_4

    :catch_1
    move-exception v1

    .line 18
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_4

    .line 19
    :cond_6
    invoke-static {}, Les/ff;->e()Ljava/lang/String;

    move-result-object v0

    const-string v1, "analyze finish"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 20
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 21
    invoke-static {}, Les/ff;->e()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "\u56fe\u7247\u5206\u6790\u8017\u65f6Expired: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v4, p0, Les/ff$a;->b:J

    sub-long/2addr v0, v4

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v0, " ms"

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 22
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->i(Les/ff;)V

    .line 23
    iget-object v0, p0, Les/ff$a;->c:Les/ff;

    invoke-static {v0}, Les/ff;->g(Les/ff;)Ljava/util/concurrent/ThreadPoolExecutor;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/ThreadPoolExecutor;->shutdownNow()Ljava/util/List;

    return-void
.end method
